
(function Events (window) {
	
	
	

	Events.apply = function () {
			
		
			console.log(String(Modernizr.touch));
		
			if(Modernizr.touch) {
					$(".panel").on("vmousedown",function (e) {	
					
						if ($(e.target).attr("tapped")!="true") {
								TweenMax.to(e.target, .5,{z:100, onComplete:function () {$(e.target).attr("tapped", "true"); }});
						}
						
							
					});
						$(".panel").on("vmouseup",function (e) {
							$(e.target).attr("tapped","false");
							TweenMax.to(e.target, .5, { z:0});
						});					
			} else {
					$(".panel").on("mouseover",function (e) {		
					TweenMax.to(e.target, .5,{z:100});
				});
				$(".panel").on("mouseout",function (e) {
						TweenMax.to(e.target, .5, { z:0});
					});
					$(".panel").on("click",function (e) {
							console.log(e.target.id);
					});
			}
			
			
				
				
		
	}
	

	

	window.Events = Events;

})(window);// JavaScript Document